<include file="public@header" />
<head>
    <meta charset="utf-8">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript" src="__STATIC__/js/admin.js?v={:time()}"></script>
    <script type="text/javascript" src="__STATIC__/js/gaopaiyi/gpy.js?v={:time()}"></script>
</head>
<body onload="onLoad(0)" >
<table>
    <tr>
        <td>
            <div  style="width: 600px;height: 440px; margin-left:2px;margin-right: 2px;margin-top: 2px;">
                <canvas id="bigPriDev" width="600" height="440" value="123" style="border:1px solid #000000;">请重启高拍仪驱动...........</canvas>
            </div>
        </td>
        <td>
            <div   style="margin:-32px 0 0 12px; " >
                <div  style="  width: 399px;height: 309px;">
                    <img id="Base64IMG" width="399" height="309"  style="padding: 2px;" /></img>
                </div>
                <div  >
                    <div>
                        <input type="hidden" id="path_file_id" value="" >
                        <input type="hidden" id="path_file" value="" >
                        <input type="hidden" id="path_title" value="" >
                        <input type="hidden" id="path_imgbase64" value="" >
                        <input type="hidden" id="contract_sn" value="" >
                        <div >
                            <input id=uploadprogress value="0"  disabled="disabled" style="height:30px;width:100%;color: red;text-align: center"/>
                            <input type="hidden" id="downloadprogress" value="" >
                        </div>
                        <div>
                            <h5 class="btn btn-info show_id_1" data-show="1" onclick="setBeginPDF();" >生成PDF开始</h5>
                            <h5 class="btn btn-success show_id_1" data-show="1" onclick="GetPDF();" >拍照</h5>
                            <h5 class="btn btn-primary show_id_1" data-show="1" onclick="EndPDF();" id="EndPDF" data-contract_sn="" >拍照完成</h5>
                        </div>
                        <div style="margin-top: 14px;">
                            <h5   class="btn btn-primary " id="uploadFile"    >上传</h5>
                        </div>
                    </div>
                </div>
            </div>
        </td>
    </tr>
    <tr>
        <td colspan="2">
            <div  id="container" style="margin: 5px 10px;height: 120px; border: #95a5a6 solid 1px">
            </div>
        </td>
    </tr>
</table>
<script>
    function child(n) {
        console.log(n)
        $('#path_file_id').val(n.id);
        $('#path_file').val(n.path);
        $('#path_title').val(n.title);
        $('#contract_sn').val(n.contract_sn);
        $('#EndPDF').attr('data-contract_sn',n.contract_sn);
    }
    $('#uploadFile').click(function () {
        var path_title = $('#path_title').val();
        var input_selector = $('#path_file_id').val();
        var path_file = $('#path_file').val();
        var container = $('#path_imgbase64').val();
        var contract_sn = $('#contract_sn').val();
        UploadFile(path_file,input_selector,contract_sn)
    })
</script>
</body>
</html>
